package eu.jba.denshijisho.entity;

import java.io.Serializable;

import eu.jba.denshijisho.util.WithId;

public class Card implements WithId, Serializable {

	private static final long serialVersionUID = -7269995284678551887L;

	private Integer id;
	private String svkWord;
	private String kanaWord;
	private String kanji;
	private String type;
	private Stat stat;
	private Integer statId;
	
	public Card(String svkWord, String kanaWord, String kanji, String type, Integer statId) {
		super();
		this.svkWord = svkWord;
		this.kanaWord = kanaWord;
		this.kanji = kanji;
		this.type = type;
		this.statId = statId;
	}

	public Card(Integer id, String svkWord, String kanaWord, String kanji, String type, Integer statId){
		super();
		this.id = id;
		this.svkWord = svkWord;
		this.kanaWord = kanaWord;
		this.kanji = kanji;
		this.type = type;
		this.statId = statId;
	}
	
	public Card(Integer id, String svkWord, String kanaWord, String kanji) {
		super();
		this.id = id;
		this.svkWord = svkWord;
		this.kanaWord = kanaWord;
		this.kanji = kanji;
		this.type = "Word";
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSvkWord() {
		return svkWord;
	}
	public void setSvkWord(String svkWord) {
		this.svkWord = svkWord;
	}
	public String getKanaWord() {
		return kanaWord;
	}
	public void setKanaWord(String kanaWord) {
		this.kanaWord = kanaWord;
	}
	public String getKanji() {
		return kanji;
	}
	public void setKanji(String kanji) {
		this.kanji = kanji;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Stat getStat() {
		return stat;
	}

	public void setStat(Stat stat) {
		this.stat = stat;
	}

	public Integer getStatId(){
		return statId;
	}
	
	@Override
	public String toString() {
		return getSvkWord() + " - " + getKanaWord() + " - " + getKanji();
	}
}
